package com.example.wusp.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration  // 标记为配置类
public class AppConfig {

    @Bean  // 定义一个Bean
    public String welcomeMessage() {
        return "欢迎使用Spring Boot";
    }
}
